lib/static-delta: document and check parameters format
authorLuca BRUNO <luca.bruno@coreos.com>
Tue, 11 Oct 2022 08:50:10 +0000 (08:50 +0000)
committerLuca BRUNO <luca.bruno@coreos.com>
Thu, 13 Oct 2022 16:29:59 +0000 (16:29 +0000)
commit763d2d2863a26c223080dbe26b6c3dd5f5028812
tree8bf5c3d3b34891428dbfa70b24eee890e861e0fd
parent14f513cf022090645929162925952c80e5acf635
lib/static-delta: document and check parameters format

This enhances the logic handling GVariant parameters within
`ostree_repo_static_delta_generate()`.
Several of those entries are expected to be zero-terminated values,
and this implicit assumption has been observed to be an hidden trap
in languages where strings and arrays may not carry a terminator value
(e.g. Rust).
In order to improve the situation, this makes the documentation more
explicit and actively tries to catch invalid input parameters.
src/libostree/ostree-repo-static-delta-compilation.c